//****************************************************************************************
// DO NOT MODIFY!
// AUTOGENERATED by fxheadergen.exe 
// FILENAME 'D:\hitman5_delivery4\code\_out\Win32\GameRelease\rendersharedconstbuffers.generated.h'
// DATE 11/13/2012 6:50:48 PM
// SRC 'D:\hitman5_delivery4\code\src\system\render\rendersharedconstbuffers.decl'
// SRC DATE 10/1/2012 8:14:58 PM
//****************************************************************************************


enum ECBufferSharedId
{
	CBUFFER_CBPEROBJECT,
	CBUFFER_CBSHAREDPERVIEWDATA,
	CBUFFER_CBDEBUGVIEWDATA,
	CBUFFER_CBSHAREDLIGHTDATA,
	CBUFFER_CBGLOBALLIGHTDATA,
	CBUFFER_CBGATEDEPTH,
	CBUFFER_CBPEROBJECTMISC,
	CBUFFER_CBGLOWCONSTANTS,
	CBUFFER_CBRUNTIMEDECAL,
	CBUFFER_CBPERFOLIAGEOBJECT,
	CBUFFER_CBPEROBJECTBONES,
	CBUFFER_CBFOGEYEMATRICES,
	CBUFFER_CBSHAREDPARTICLESPRITESDATA,
	CBUFFER_CBSHAREDRAINDATA,
	CBUFFER_COUNT,
};

enum ECBufferSharedSlots
{
	CBUFFER_CBPEROBJECT_SLOT = 0,
	CBUFFER_CBSHAREDPERVIEWDATA_SLOT = 1,
	CBUFFER_CBDEBUGVIEWDATA_SLOT = 1,
	CBUFFER_CBSHAREDLIGHTDATA_SLOT = 2,
	CBUFFER_CBGLOBALLIGHTDATA_SLOT = 2,
	CBUFFER_CBGATEDEPTH_SLOT = 2,
	CBUFFER_CBPEROBJECTMISC_SLOT = 2,
	CBUFFER_CBGLOWCONSTANTS_SLOT = 2,
	CBUFFER_CBRUNTIMEDECAL_SLOT = 2,
	CBUFFER_CBPERFOLIAGEOBJECT_SLOT = 2,
	CBUFFER_CBPEROBJECTBONES_SLOT = 3,
	CBUFFER_CBFOGEYEMATRICES_SLOT = 3,
	CBUFFER_CBSHAREDPARTICLESPRITESDATA_SLOT = 3,
	CBUFFER_CBSHAREDRAINDATA_SLOT = 3,
	CBUFFER_SLOT_COUNT = 4,
};

#ifndef CONST_BUFFER_IMPL
extern const char* g_RenderConstBufferSharedNames[ CBUFFER_COUNT ];
extern ECBufferSharedSlots g_RenderConstBufferSharedIdToSlot[ CBUFFER_COUNT ];
#else
const char* g_RenderConstBufferSharedNames[ CBUFFER_COUNT ] = 
{
	"cbPerObject", 
	"cbSharedPerViewData", 
	"cbDebugViewData", 
	"cbSharedLightData", 
	"cbGlobalLightData", 
	"cbGateDepth", 
	"cbPerObjectMisc", 
	"cbGlowConstants", 
	"cbRuntimeDecal", 
	"cbPerFoliageObject", 
	"cbPerObjectBones", 
	"cbFogEyeMatrices", 
	"cbSharedParticleSpritesData", 
	"cbSharedRainData", 
};

extern ECBufferSharedSlots g_RenderConstBufferSharedIdToSlot[ CBUFFER_COUNT ] = 
{
	CBUFFER_CBPEROBJECT_SLOT, 
	CBUFFER_CBSHAREDPERVIEWDATA_SLOT, 
	CBUFFER_CBDEBUGVIEWDATA_SLOT, 
	CBUFFER_CBSHAREDLIGHTDATA_SLOT, 
	CBUFFER_CBGLOBALLIGHTDATA_SLOT, 
	CBUFFER_CBGATEDEPTH_SLOT, 
	CBUFFER_CBPEROBJECTMISC_SLOT, 
	CBUFFER_CBGLOWCONSTANTS_SLOT, 
	CBUFFER_CBRUNTIMEDECAL_SLOT, 
	CBUFFER_CBPERFOLIAGEOBJECT_SLOT, 
	CBUFFER_CBPEROBJECTBONES_SLOT, 
	CBUFFER_CBFOGEYEMATRICES_SLOT, 
	CBUFFER_CBSHAREDPARTICLESPRITESDATA_SLOT, 
	CBUFFER_CBSHAREDRAINDATA_SLOT, 
};

#endif
#ifndef _XBOX360
//****************************************************************************************
//    GENERIC (PS3/PC)
//****************************************************************************************


enum ECBufferSharedSize
{
	CBUFFER_SIZE_0 = 8,
	CBUFFER_SIZE_1 = 27,
	CBUFFER_SIZE_2 = 24,
	CBUFFER_SIZE_3 = 192,
};

enum ECBufferSharedStartRegister
{
	CBUFFER_START_0 = 0,
	CBUFFER_START_1 = 8,
	CBUFFER_START_2 = 35,
	CBUFFER_START_3 = 59,
};

struct S_cbPerObject
{
	SMatrix44     go_mObjectToView;             
	SVector4      go_vPosScale;                 
	SVector4      go_vPosBias;                  
	SVector4      go_vTexScaleBias;             
	SVector4      go_vObjectId;                 
};

struct S_cbSharedPerViewData
{
	SMatrix44     mProjection;                  
	SMatrix44     mViewToViewport;              
	SMatrix44     mViewToWorld;                 
	SVector4      vViewRemap;                   
	SVector4      vViewDepthRemap;              
	SVector4      vEyeVectorUL;                 
	SVector4      vEyeVectorLR;                 
	SVector4      v4ShadowRange;                
	SVector4      vViewSpaceUpVector;           
	SVector4      vGlobalLitFactor;             
	SVector4      vViewportSize;                
	SVector4      vEngineTime;                  
	SVector4      vShaderColor0;                
	SVector4      vShaderColor1;                
	SVector4      vShaderColor2;                
	SVector4      vShaderColor3;                
	SVector4      vShaderColor4;                
	SVector4      vClipPlane;                   
};

struct S_cbDebugViewData
{
	SMatrix44     gm_mViewProjection;           
};

struct S_cbSharedLightData
{
	SVector4      vParams0;                     
	SVector4      vParams1;                     
	SVector4      vParams2;                     
	SVector4      vLightDiffuse;                
	SVector4      vHalfLightBoxFadeNeg;         
	SVector4      vHalfLightBoxFadePos;         
	SVector4      vRcpLightBoxFadeNeg;          
	SVector4      vRcpLightBoxFadePos;          
	SVector4      vLightPosView;                
	SVector4      vLightDirView;                
	SVector4      vProjectorTilingOffset;       
	SMatrix44     mViewToShadowProjTrans;       
	SMatrix44     mViewToLightProjTrans;        
	SVector4      vLightParams;                 
	SVector4      vRestrictLightBoxVectorX;     
	SVector4      vRestrictLightBoxVectorY;     
	SVector4      vRestrictLightBoxVectorZ;     
	SVector4      vRestrictLightBoxPosition;    
};

struct S_cbGlobalLightData
{
	SVector4      vAmbientMiddle0;              
	SVector4      vAmbientMiddle1;              
	SVector4      vAmbientDelta0;               
	SVector4      vAmbientDelta1;               
	SVector4      vBackColor0;                  
	SVector4      vBackColor1;                  
	SVector4      vLightDirView;                
	SVector4      vLightDirView2;               
};

struct S_cbGateDepth
{
	SMatrix44     mProjectionT;                 
	SMatrix44     mObjectToView;                
	SVector4      vEyeUpperLeft;                
	SVector4      vUDir;                        
	SVector4      vVDir;                        
	SVector4      vGateSign;                    
	SVector4      vCameraPos;                   
	SVector4      vDepthFarDistance;            
};

struct S_cbPerObjectMisc
{
	SVector4      go_vSimpleColor;              
	SVector4      go_vDebugWireFrameColor;      
};

struct S_cbGlowConstants
{
	SVector4      GlowAmount;                   
};

struct S_cbRuntimeDecal
{
	SVector4      vTexAnim;                     
	SVector4      vColor;                       
	SMatrix44     mProjection;                  
	SVector4      vTexTileOffset;               
};

struct S_cbPerFoliageObject
{
	SMatrix44     go_mObjectToWorld;            
	SVector4      go_vExternalForcePosition;    
	SVector4      go_vExternalForceDirection;   
	SVector4      go_vBendDirection;            
};

struct S_cbPerObjectBones
{
	SVector4      v4Bones[192];                 
};

struct S_cbFogEyeMatrices
{
	SVector4      v3FogEyeMatrices[24];         
};

struct S_cbSharedParticleSpritesData
{
	SMatrix44     mWorldToView;                 
	SVector4      vDirScaleBias;                
	SVector4      vVecScale;                    
	SVector4      vVecBias;                     
};

struct S_cbSharedRainData
{
	SMatrix44     m44ObjectToWorld;             
	SMatrix44     m44WorldToView;               
	SMatrix44     m44ViewToShadowProj;          
	SMatrix44     m44ShadowProjToView;          
	SMatrix44     m44ObjectToView;              
	SMatrix44     m44ProjectionT;               
	SMatrix44     m44ProjectionTI;              
	SMatrix44     m44ViewToViewport;            
	SVector4      gm_v2NoiseOffset;             
	SVector4      gm_vPuddleProperties;         
	SVector4      gm_vRunningWaterProperties;   
	SVector4      gm_vHalfLightBoxFadeNeg;      
	SVector4      gm_vHalfLightBoxFadePos;      
	SVector4      gm_vRcpLightBoxFadeNeg;       
	SVector4      gm_vRcpLightBoxFadePos;       
	SVector4      gm_fAntiRainIntensity;        
	SVector4      gm_vCameraPosition;           
	SVector4      gm_vRainFade;                 
	SVector4      gm_fColorScale;               
	SVector4      gm_fAlphaScale;               
	SVector4      gm_vRainDirection;            
	SVector4      gm_vRainCameraPos;            
	SVector4      gm_ShadowRange;               
	SVector4      gm_StreakScale;               
	SVector4      gm_Speed;                     
	SVector4      gm_ContactScale;              
	SVector4      gm_RandomRotation;            
	SVector4      gm_SplashOffset;              
	SVector4      gm_SplashVelocity;            
	SVector4      gm_DieTime;                   
	SVector4      gm_TextureBlockScale;         
	SVector4      gm_TextureBlockSize;          
	SVector4      gm_ViewportSize;              
	SVector4      gm_RefractScale;              
	SVector4      gm_RainRadius;                
	SVector4      g_vEyeUpperLeft;              
	SVector4      g_vEyeLowerRight;             
	SVector4      g_vEyeDeltaX;                 
	SVector4      g_vEyeDeltaY;                 
	SVector4      g_vViewRemap;                 
};

#ifndef CONST_BUFFER_IMPL
extern uint8 g_RenderConstBufferSharedFirstRegister[ CBUFFER_SLOT_COUNT ];
extern uint8 g_RenderConstBufferSharedNumRegisters[ CBUFFER_SLOT_COUNT ];
#else
extern uint8 g_RenderConstBufferSharedFirstRegister[ CBUFFER_SLOT_COUNT ] = 
{
	CBUFFER_START_0,
	CBUFFER_START_1,
	CBUFFER_START_2,
	CBUFFER_START_3,
};

extern uint8 g_RenderConstBufferSharedNumRegisters[ CBUFFER_SLOT_COUNT ] = 
{
	CBUFFER_SIZE_0,
	CBUFFER_SIZE_1,
	CBUFFER_SIZE_2,
	CBUFFER_SIZE_3,
};

#endif
#else //_XBOX360
//****************************************************************************************
//    360
//****************************************************************************************


enum ECBufferSharedSizeVS
{
	CBUFFER_SIZE_VS_0 = 12,
	CBUFFER_SIZE_VS_1 = 16,
	CBUFFER_SIZE_VS_2 = 8,
	CBUFFER_SIZE_VS_3 = 192,
};

enum ECBufferSharedStartRegisterVS
{
	CBUFFER_START_VS_0 = 0,
	CBUFFER_START_VS_1 = 12,
	CBUFFER_START_VS_2 = 28,
	CBUFFER_START_VS_3 = 36,
};

enum ECBufferSharedSizePS
{
	CBUFFER_SIZE_PS_0 = 4,
	CBUFFER_SIZE_PS_1 = 28,
	CBUFFER_SIZE_PS_2 = 24,
	CBUFFER_SIZE_PS_3 = 64,
};

enum ECBufferSharedStartRegisterPS
{
	CBUFFER_START_PS_0 = 0,
	CBUFFER_START_PS_1 = 4,
	CBUFFER_START_PS_2 = 32,
	CBUFFER_START_PS_3 = 56,
};

struct S_cbPerObject
{
	SMatrix44     go_mObjectToView;             
	SVector4      go_vPosScale;                 
	SVector4      go_vPosBias;                  
	SVector4      go_vTexScaleBias;             
	SVector4      _pad0;                        
	SVector4      go_vObjectId;                 
	SVector4      _pad1;                        
	SVector4      _pad2;                        
	SVector4      _pad3;                        
};

struct S_cbSharedPerViewData
{
	SMatrix44     mProjection;                  
	SMatrix44     mViewToWorld;                 
	SVector4      vViewRemap;                   
	SVector4      vEyeVectorUL;                 
	SVector4      vEyeVectorLR;                 
	SVector4      vViewSpaceUpVector;           
	SVector4      vGlobalLitFactor;             
	SVector4      vEngineTime;                  
	SMatrix44     mViewToViewport;              
	SVector4      vViewDepthRemap;              
	SVector4      v4ShadowRange;                
	SVector4      vViewportSize;                
	SVector4      vShaderColor0;                
	SVector4      vShaderColor1;                
	SVector4      vShaderColor2;                
	SVector4      vShaderColor3;                
	SVector4      vShaderColor4;                
	SVector4      vClipPlane;                   
	SVector4      _pad0;                        
};

struct S_cbDebugViewData
{
	SMatrix44     gm_mViewProjection;           
};

struct S_cbSharedLightData
{
	SVector4      vParams0;                     
	SVector4      vParams1;                     
	SVector4      vParams2;                     
	SVector4      vLightDiffuse;                
	SVector4      vHalfLightBoxFadeNeg;         
	SVector4      vHalfLightBoxFadePos;         
	SVector4      vRcpLightBoxFadeNeg;          
	SVector4      vRcpLightBoxFadePos;          
	SVector4      vLightPosView;                
	SVector4      vLightDirView;                
	SVector4      vProjectorTilingOffset;       
	SMatrix44     mViewToShadowProjTrans;       
	SMatrix44     mViewToLightProjTrans;        
	SVector4      vLightParams;                 
	SVector4      vRestrictLightBoxVectorX;     
	SVector4      vRestrictLightBoxVectorY;     
	SVector4      vRestrictLightBoxVectorZ;     
	SVector4      vRestrictLightBoxPosition;    
};

struct S_cbGlobalLightData
{
	SVector4      vAmbientMiddle0;              
	SVector4      vAmbientMiddle1;              
	SVector4      vAmbientDelta0;               
	SVector4      vAmbientDelta1;               
	SVector4      vBackColor0;                  
	SVector4      vBackColor1;                  
	SVector4      vLightDirView;                
	SVector4      vLightDirView2;               
};

struct S_cbGateDepth
{
	SMatrix44     mProjectionT;                 
	SMatrix44     mObjectToView;                
	SVector4      vEyeUpperLeft;                
	SVector4      vUDir;                        
	SVector4      vVDir;                        
	SVector4      vGateSign;                    
	SVector4      vCameraPos;                   
	SVector4      vDepthFarDistance;            
	SVector4      _pad0;                        
	SVector4      _pad1;                        
};

struct S_cbPerObjectMisc
{
	SVector4      go_vSimpleColor;              
	SVector4      go_vDebugWireFrameColor;      
	SVector4      _pad0;                        
	SVector4      _pad1;                        
};

struct S_cbGlowConstants
{
	SVector4      GlowAmount;                   
	SVector4      _pad0;                        
	SVector4      _pad1;                        
	SVector4      _pad2;                        
};

struct S_cbRuntimeDecal
{
	SVector4      vTexAnim;                     
	SVector4      vColor;                       
	SMatrix44     mProjection;                  
	SVector4      vTexTileOffset;               
	SVector4      _pad0;                        
};

struct S_cbPerFoliageObject
{
	SMatrix44     go_mObjectToWorld;            
	SVector4      go_vExternalForcePosition;    
	SVector4      go_vExternalForceDirection;   
	SVector4      go_vBendDirection;            
	SVector4      _pad0;                        
};

struct S_cbPerObjectBones
{
	SVector4      v4Bones[192];                 
};

struct S_cbFogEyeMatrices
{
	SVector4      v3FogEyeMatrices[24];         
};

struct S_cbSharedParticleSpritesData
{
	SMatrix44     mWorldToView;                 
	SVector4      vDirScaleBias;                
	SVector4      vVecScale;                    
	SVector4      vVecBias;                     
	SVector4      _pad0;                        
};

struct S_cbSharedRainData
{
	SMatrix44     m44ObjectToWorld;             
	SMatrix44     m44WorldToView;               
	SMatrix44     m44ViewToShadowProj;          
	SMatrix44     m44ShadowProjToView;          
	SMatrix44     m44ObjectToView;              
	SMatrix44     m44ProjectionT;               
	SMatrix44     m44ProjectionTI;              
	SMatrix44     m44ViewToViewport;            
	SVector4      gm_v2NoiseOffset;             
	SVector4      gm_vPuddleProperties;         
	SVector4      gm_vRunningWaterProperties;   
	SVector4      gm_vHalfLightBoxFadeNeg;      
	SVector4      gm_vHalfLightBoxFadePos;      
	SVector4      gm_vRcpLightBoxFadeNeg;       
	SVector4      gm_vRcpLightBoxFadePos;       
	SVector4      gm_fAntiRainIntensity;        
	SVector4      gm_vCameraPosition;           
	SVector4      gm_vRainFade;                 
	SVector4      gm_fColorScale;               
	SVector4      gm_fAlphaScale;               
	SVector4      gm_vRainDirection;            
	SVector4      gm_vRainCameraPos;            
	SVector4      gm_ShadowRange;               
	SVector4      gm_StreakScale;               
	SVector4      gm_Speed;                     
	SVector4      gm_ContactScale;              
	SVector4      gm_RandomRotation;            
	SVector4      gm_SplashOffset;              
	SVector4      gm_SplashVelocity;            
	SVector4      gm_DieTime;                   
	SVector4      gm_TextureBlockScale;         
	SVector4      gm_TextureBlockSize;          
	SVector4      gm_ViewportSize;              
	SVector4      gm_RefractScale;              
	SVector4      gm_RainRadius;                
	SVector4      g_vEyeUpperLeft;              
	SVector4      g_vEyeLowerRight;             
	SVector4      g_vEyeDeltaX;                 
	SVector4      g_vEyeDeltaY;                 
	SVector4      g_vViewRemap;                 
};

struct SRenderConstBufferOffsetInfo
{
	uint8 nSizeVS;
	uint8 nOffsetPS;
	uint8 nSizePS;
};


#ifndef CONST_BUFFER_IMPL
extern SRenderConstBufferOffsetInfo g_RenderConstBufferSharedOffsetInfo[ CBUFFER_COUNT ];
extern uint8 g_RenderConstBufferSharedFirstRegisterVS[ CBUFFER_SLOT_COUNT ];
extern uint8 g_RenderConstBufferSharedFirstRegisterPS[ CBUFFER_SLOT_COUNT ];
extern uint8 g_RenderConstBufferSharedNumRegistersVS[ CBUFFER_SLOT_COUNT ];
extern uint8 g_RenderConstBufferSharedNumRegistersPS[ CBUFFER_SLOT_COUNT ];
#else
SRenderConstBufferOffsetInfo g_RenderConstBufferSharedOffsetInfo[ CBUFFER_COUNT ] = 
{
	{ 12 , 8  , 4   }, //cbPerObject
	{ 16 , 0  , 28  }, //cbSharedPerViewData
	{ 4  , 4  , 0   }, //cbDebugViewData
	{ 0  , 0  , 24  }, //cbSharedLightData
	{ 0  , 0  , 8   }, //cbGlobalLightData
	{ 8  , 8  , 8   }, //cbGateDepth
	{ 4  , 0  , 4   }, //cbPerObjectMisc
	{ 4  , 4  , 0   }, //cbGlowConstants
	{ 8  , 8  , 0   }, //cbRuntimeDecal
	{ 8  , 8  , 0   }, //cbPerFoliageObject
	{ 192, 192, 0   }, //cbPerObjectBones
	{ 24 , 24 , 0   }, //cbFogEyeMatrices
	{ 8  , 8  , 0   }, //cbSharedParticleSpritesData
	{ 64 , 0  , 64  }, //cbSharedRainData
};
extern uint8 g_RenderConstBufferSharedFirstRegisterVS[ CBUFFER_SLOT_COUNT ] = 
{
	CBUFFER_START_VS_0,
	CBUFFER_START_VS_1,
	CBUFFER_START_VS_2,
	CBUFFER_START_VS_3,
};

extern uint8 g_RenderConstBufferSharedFirstRegisterPS[ CBUFFER_SLOT_COUNT ] = 
{
	CBUFFER_START_PS_0,
	CBUFFER_START_PS_1,
	CBUFFER_START_PS_2,
	CBUFFER_START_PS_3,
};

extern uint8 g_RenderConstBufferSharedNumRegistersVS[ CBUFFER_SLOT_COUNT ] = 
{
	CBUFFER_SIZE_VS_0,
	CBUFFER_SIZE_VS_1,
	CBUFFER_SIZE_VS_2,
	CBUFFER_SIZE_VS_3,
};

extern uint8 g_RenderConstBufferSharedNumRegistersPS[ CBUFFER_SLOT_COUNT ] = 
{
	CBUFFER_SIZE_PS_0,
	CBUFFER_SIZE_PS_1,
	CBUFFER_SIZE_PS_2,
	CBUFFER_SIZE_PS_3,
};

#endif
#endif
